<?php
ini_set("display_error",0);
 $conn = mysql_connect('localhost','root','dordordor');
 mysql_select_db('db_hris');


require_once('configure.php');
require_once('components/a_download_finger/html.a_download_finger.php');
$hosts = array("192.168.10.18", "192.168.10.15" , "192.168.10.19", "192.168.10.17","192.168.10.20"); 
$query = "SELECT * FROM a_mesin_lokasi";
$result = my_query($query);
$ff =0;
while($row = my_fetch_array($result)){  
	$ff +=  save_data_download($row['id'] , $row['ip_lokasi'], "0");
}
 
$query = " INSERT INTO cron_jobs SET
	command_cron	= 'Kalkulasi finger harian' ,
	datetime_added	= NOW() ,
	messages	=  {$ff} " ;
mysql_query($query , $conn ); 
echo $ff;